<?php
declare(strict_types=1);
namespace App\Api;

use App\ApiController;


// hook api_gather_use.php

/**
 * @title   收集数据
 * @auth    true
 * @rank    3
 */
class Gather extends ApiController
{
    // hook api_gather_start.php

    public  $nick_id = 0;
    public  $shop_id = 0;


    /**
     * @title  上报直通车数据
     * @rank    99
     */

    public function action_Subway_POST()
    {
        // hook api_gather_subway_post_start.php
        $nickname = $this->request->param('nickname', '');
        $apiname = $this->request->param('apiname', '');
        $data = $this->request->param('data', '');
        $this->CheckEmpty([$apiname] ,["必要参数"]);


        // hook api_gather_subway_post_before.php

        // hook api_gather_subway_post_end.php
        $this->response('0000');
    }
    /**
     * @title  上报创意数据
     * @rank    99
     */

    public function action_Chuangyi_POST()
    {
        // hook api_gather_chuangyi_post_start.php
        $nickname = $this->request->param('nickname', '');
        $apiname = $this->request->param('apiname', '');
        $data = $this->request->param('data', '');
        $this->CheckEmpty([$apiname] ,["必要参数"]);

        // hook api_gather_chuangyi_post_before.php

        // hook api_gather_chuangyi_post_end.php
        $this->response('0000',$data);
    }


    /**
     * @title  上报引力魔方数据
     * @rank    99
     */

    public function action_Tuijian_POST()
    {
        $apiname = $this->request->param('apiname', '');
        $data = $this->request->param('data', '');
        $this->CheckEmpty([$apiname] ,["必要参数"]);


        $this->response('0000');
    }

    /**
     * @title  上报无界数据
     * @rank    99
     */

    public function action_One_POST()
    {
        $apiname = $this->request->param('apiname', '');
        $data = $this->request->param('data', '');
        $this->CheckEmpty([$apiname] ,["必要参数"]);

        $this->response('0000');
    }

    /**
     * @title  上报店铺数据
     * @rank    99
     */

    public function action_Shop_POST()
    {
        $apiname = $this->request->param('apiname', '');
        $data = $this->request->param('data', '');
        $this->CheckEmpty([$apiname] ,["必要参数"]);

        $this->response('0000');
    }

    // hook api_gather_end.php
}

?>